#include <bits/stdc++.h>

using namespace std;

int n, a[200001], b[200001];

signed main(){
	freopen("duel.in", "r", stdin);
	freopen("duel.out", "w", stdout);
	scanf("%d", &n);
	for(int i = 1; i <= n; i++){
		scanf("%d", a + i);
		b[a[i]]++;
	}
	int ans = n, rest = 0;
	for(int i = 1; i <= 200000; i++){
		ans -= min(b[i], rest);
		rest += b[i] - min(b[i], rest);
	}
	printf("%d\n", ans);
	return 0;
}
